package com.lmx.healthcode.base;

import android.app.Application;

import com.lmx.healthcode.util.SharedPreUtil;

import cn.bmob.v3.Bmob;

/**
 * @author Leung
 * @date 2020/9/10 17:02
 */
public class MyApp extends Application {

    private static MyApp instance;

    @Override
    public void onCreate() {
        super.onCreate();
        instance = this;
        Bmob.initialize(this, "0454116715cb4ecbabd4324e6e4e0df8");
    }

    public static MyApp getInstance() {
        return instance;
    }

    public static boolean isFirstCommit() {
        return SharedPreUtil.getBoolean(instance, SharedPreUtil.KEY_FIRST_COMMIT, true);
    }
}
